package com.example.ISearchBlog.service;

import com.example.ISearchBlog.entity.ArticleInfo;
import com.example.ISearchBlog.mapper.SearchMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchService {
    @Autowired
    private SearchMapper searchMapper;

    public List<ArticleInfo> searches(String keyword) {
        return searchMapper.search(keyword);
    }
}
